import React from "react";
import {useRoutes} from 'react-router-dom'
import Home from "@/pages/home";
import ByteMd from "@/pages/bytemd"
import Login from "@/pages/Login"
import Essay from "@/pages/eassy"
import App from "@/App"

export default function Index(){
    return useRoutes([
        {
            path: '/',
            element: <App/>,
            children: [
                {path: '', element: <Home/>},
                {path: 'essay', element: <Essay/>},
            ]
        },
        {path: 'bytemd', element: <ByteMd/>},
        {path: 'login', element: <Login/>}

    ])
}
